local mt = ac.buff['沉默']

mt.control = true
mt.debuff = true

mt.time = 5

function mt:on_add()
    self.frozen = self.owner:add_effect([[Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl]])
    self.frozen:play_animation('stand')
    self.owner:add_restriction '晕眩'
    self.owner:set_animation_speed(0)
end

function mt:on_remove()
    if self.frozen then 
        self.frozen:remove()
    end
    self.owner:remove_restriction '晕眩'
    self.owner:set_animation_speed(1)
end

function mt:on_cover()
    return false
end